package com.runtime.hongyunmanage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.runtime.hongyunmanage.bean.Users;
import com.runtime.hongyunmanage.mapper.UserMapper;
import com.runtime.hongyunmanage.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, Users> implements UserService{

    @Autowired
    private UserMapper userMapper;


    @Override
    public List<Users> findUsersByCondition(int pageSize, int offset, Users users) {
        return userMapper.findUsersByCondition(pageSize,offset,users);
    }

    @Override
    public int CountUsers(Users users) {
        return userMapper.CountUsers(users);
    }

    @Override
    public boolean existsByUsername(String username) {
        return userMapper.existsByUsername(username);
    }
}
